//
//  GraphViewController.h
//  ClinicalCollections
//
//  Created by janakiraman gopinath on 1/5/13.
//  Copyright (c) 2013 GOPI. All rights reserved.
//

#import "CorePlot-CocoaTouch.h"
#import <UIKit/UIKit.h>
#import "ClinicalTrialGov.h"


@interface GraphViewController : UICollectionViewController <CPTBarPlotDataSource, CPTPieChartDataSource, CPTBarPlotDelegate,  UITextViewDelegate, UICollectionViewDelegate, UICollectionViewDataSource>
{
   
    CPTXYGraph *graph, *barChart, *pieGraph;
    CPTPieChart *piePlot;
    BOOL piePlotIsRotating;

    NSMutableArray *dataForChart, *dataForPlot;
}

@property (readwrite, retain, nonatomic) NSMutableArray *dataForChart, *dataForPlot;

@property (nonatomic, strong) IBOutlet UITextView *scrollView;
@property (nonatomic, strong) IBOutlet UICollectionView *collectionView;
@property (nonatomic, weak) ClinicalTrialGov   *clinicalTrialGov;
// Plot construction methods
-(void)constructBarChart:(CPTGraphHostingView *) hostingView;
- (void) reload;
@end